import redis,json

markets = [1]

r = redis.Redis(host='127.0.0.1', port=6379, db=0)
for market in markets:
    for k in r.keys('MINK-*-%d' % market):
    	minK = json.loads(r.hget(k,"0"))
    	print minK
        #r.delete(k)
        print 'delete ', k
